home *** CD-ROM | disk | FTP | other *** search
/ Mac100% 1998 November / MAC100-1998-11.ISO.7z / MAC100-1998-11.ISO / スクリーンセーバーファクトリー / DarkSide of the Mac 5.0.2 / SampleFaders / Invert.r < prev    next >
Text File  |  1994-08-18  |  2KB  |  135 lines

  1. /*
  2.     DarkSide 3.0 - a 7.0 dependant, system clean expandable screen saver.
  3.     
  4.     copyright ゥハ1990, 1991, 1992 by Tom Dowdy
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #include "Fader.r"
  10. #include "CodeFragmentTypes.r"
  11.  
  12. resource 'cfrg' (0) {
  13.    {
  14.       kPowerPC,
  15.       kFullLib,
  16.       kNoVersionNum,kNoVersionNum,
  17.       kDefaultStackSize, kNoAppSubFolder,
  18.       kIsDropIn,kOnDiskFlat,kZeroOffset,kWholeFork,
  19.       "Invert"
  20.    }
  21. };
  22.  
  23.  
  24. resource 'DITL' (5000, purgeable) {
  25.     {
  26.     { 5, 5, 20, areaWidth-5 },
  27.         StaticText {enabled, "Invert ゥ 1990-92 by Tom Dowdy"},
  28.         
  29.     { 25, 15, 25+30, areaWidth-15 },
  30.          Control {enabled, 5000+1},
  31.  
  32.     { 5, areaWidth-33, 5+32, areaWidth-2 },
  33.         Icon {enabled, 5000},
  34.  
  35.     {0,0,0,0},
  36.         HelpItem { enabled, HMScanAppendhdlg {5000, 0} },
  37.     };
  38. };
  39.  
  40. resource 'hdlg' (5000, purgeable) {
  41.     HelpMgrVersion,
  42.     0,
  43.     hmDefaultOptions,
  44.     0,
  45.     3,        // hang left
  46.     
  47.     // missing items
  48.     HMSkipItem {},
  49.         
  50.     // items in the dialog
  51.     {
  52.     HMStringItem{
  53.         {0,0},
  54.         {0,0,0,0},
  55.         "Press here for additional information about this fader.",
  56.         "",
  57.         "",
  58.         "",
  59.         };
  60.  
  61.     HMStringItem{
  62.         {6,6},
  63.         {0,0,0,0},
  64.         "Use this control to adjust the speed of the flashing.",
  65.         "",
  66.         "",
  67.         "Use this control to adjust the speed of the flashing.",
  68.         };
  69.         
  70.     HMStringItem{
  71.         {0,0},
  72.         {0,0,0,0},
  73.         "Press here for additional information about this fader.",
  74.         "",
  75.         "",
  76.         "",
  77.         };
  78.     }
  79. };
  80.  
  81. resource 'CNTL' (5000+1, purgeable) {
  82.     {0, 0, 0+30, areaWidth-20},
  83.     5,
  84.     visible,
  85.     9,
  86.     0,
  87.     16*200,
  88.     5000+1,                // STR# ID of the names
  89.     "Speed of flashing: "
  90. };
  91.  
  92. // strings filled in for the above control
  93. resource 'SCTL' (5000+1) {
  94.     {
  95.     0,    "Sloth-like";
  96.     1,    "Molasses";
  97.     2,    "Pokey";
  98.     3,    "Slow";
  99.     4,    "Medium";
  100.     5,    "Fast";
  101.     6,    "Speedy";
  102.     7,    "Wizzy";
  103.     8,    "Lightning";
  104.     9,    "Blinding";
  105.     };
  106. };
  107.  
  108.  
  109. // resource to control the DITL above
  110. resource 'DCTL' (5000) {
  111.     {
  112.     // item 1        about ID        ignored            ignored
  113.     1,                5000,            0,                0;
  114.     
  115.     // item 2        res control        ignored            first short
  116.     2,                 3,                 0,                 0;
  117.  
  118.     // item 3        about ID        ignored            ignored
  119.     3,                 5000,            0,                 0;
  120.     };
  121. };
  122.  
  123. // default values for our fader
  124. resource 'DFLT' (5000) {
  125.     {5},
  126.     {};
  127. };
  128.  
  129. resource 'HELP' (5000) {
  130.     "Invert ゥ 1990-92 by Tom Dowdy¥n¥n"
  131.     "Invert is a very simple fader designed mostly to show you how to create "
  132.     "a fader for DarkSide.  However, if you enjoy running it on your machine, "
  133.     "that's okay too."
  134. };
  135.